package behavioral.command;

/**
 * @Description: 调用者
 * @Author: lxt
 * @CreateDate: 2019/11/1
 **/
public class Invoker {
    private ICommand command;

    public void setCommand(ICommand command) {
        this.command = command;
    }

    public void start() {
        command.doStart();
    }

    public void stop() {
        command.doStop();
    }
}
